var roleCode=''
// var zhengmianUrl='http://47.99.44.146:6534/upzhengmian'
// var fanmianUrl='http://47.99.44.146:6534/upfanmian'
// var datouUrl='http://47.99.44.146:6534/updatou'
var zhengmianUrl='http://47.99.44.146:6534/upzhengmian'
var fanmianUrl='http://47.99.44.146:6534/upfanmian'
var datouUrl='http://47.99.44.146:6534/updatou'
var BASE="/api"
BASE="/manage"
var sijiid=''
var Authorization=''
var globalRole=getCookie('globalRole')?getCookie('globalRole'):''
//oGory0YEx4FO3btkdPkixXMEV-OA
//wsghjiok5555
var openid=getCookie('openid')?getCookie('openid'):''

var telephone=''
// var imgUpUrl="http://192.168.220.180:8888/restful/v1/file/upload"
// var imgshow='http://192.168.220.180:8088/lt/file/show'

//线上
var imgUpUrl="http://47.102.140.203:8090/restful/v1/file/upload"
var imgshow="http://47.102.140.203:8666/lt/file/show"
var youObj={

}
function getQueryVariable(variable)
{
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
}
function setCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}

//取回cookie
function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + "=")
if (c_start!=-1)
  { 
  c_start=c_start + c_name.length+1 
  c_end=document.cookie.indexOf(";",c_start)
  if (c_end==-1) c_end=document.cookie.length
  return unescape(document.cookie.substring(c_start,c_end))
  } 
}
return ""
}

let xiaoquList=[
  {name:'华源国际城',type:1},
  {name:'福海新居',type:2},
  {name:'园林小区',type:3},
  {name:'九亩地',type:4},
  {name:'费子冲恢复楼',type:5}
]


Date.prototype.Format = function (fmt) {
  var o = {
      "M+": this.getMonth() + 1, //月份 
      "d+": this.getDate(), //日 
      "H+": this.getHours(), //小时 
      "m+": this.getMinutes(), //分 
      "s+": this.getSeconds(), //秒 
      "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
      "S": this.getMilliseconds() //毫秒 
  };
  if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  for (var k in o)
  if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  return fmt;
}








